<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<html>
    <head>
        <script type="text/javascript">
        </script>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Product toevoegen aan gebruiker</title>
        <link href="/MVCWebApp_Hibernate/style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <form id="addproduct" action="producttoevoegen" method="post">
            <h1>Voeg producten toe voor gebruiker: ${gebruiker.name}</h1>
            <c:choose>
                <c:when test="${error != ''}">
                    <p style="color:red">${error}</p>
                </c:when>
            </c:choose>

            <select name="product">
                <c:forEach var="tempProduct" items="${productenUitSessie}">
                    <option value="${tempProduct.productNumber}">${tempProduct.name}</option>
                </c:forEach>
            </select>
            <input type="hidden" name="userid" value="${gebruiker.customerNumber}"></input>
            <input class="submit" type="submit" value="Voeg toe">
        </form>
    </body>
</html>